import Vue from 'vue'
import App from './App.vue'
// import store from './store'
// import api from './api'
// import Vue from 'vue'
import 'swiper/dist/css/swiper.css'
import './static/iconfont/iconfont.css'
import Player from '@/components/Player'



import moment from 'moment'
Vue.component(Player.name, Player)

// 注册全局组件

// 引入store对象
import store from '@/store'

import api from './api'
Vue.prototype.$API = api
Vue.prototype.$moment = moment

Vue.config.productionTip = false
// Vue.prototype.$api = api
// console.log(api);
import router from './router'

import {
  Button,
  Pagination,
  Message
} from 'element-ui'
Vue.use(Button)
Vue.use(Pagination)
Vue.prototype.$message = Message

new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render: h => h(App),
  router,
  // api
  store
}).$mount('#app')
